from selenium import webdriver


driver_path = r"D:\chromedriver\chromedriver.exe"
req_url = 'https://www.baidu.com'
driver = webdriver.Chrome(executable_path=driver_path)
driver.get(req_url)

for cookie in driver.get_cookies():
  print(cookie)

print(driver.get_cookie("PSTM"))

driver.delete_cookie("PSTM")

driver.delete_all_cookies()